/*
 * @Date: 2024-01-27 11:00:56
 * @LastEditors: fromct 512799311@qq.com
 * @LastEditTime: 2024-03-01 22:02:54
 * @FilePath: /umi-max/src/pages/Home/index.tsx
 * @Description: desc
 */
import Guide from '@/components/Guide';
import { trim } from '@/utils/format';
import { PageContainer } from '@ant-design/pro-components';
import { useModel, useSelector } from '@umijs/max';
import styles from './index.less';
import PdfComponent from './pdfCom';

const HomePage: React.FC = () => {
  const { name } = useModel('global');
  const sta = useSelector((state: any) => {
    return state.home.name;
  });
  console.log('name', name);
  return (
    <PageContainer ghost>
      <div className={styles.container}>
        <Guide name={trim(name)} />
        <div>{sta}</div>
        <div>
          <PdfComponent />
        </div>
      </div>
    </PageContainer>
  );
};

export default HomePage;
